package org.fusionide.builder.parsers;

import org.eclipse.core.resources.IMarker;

public class ParserException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1798795057854868057L;

	private int lineNumber = -1;

	private int severity = 0;

	public static final int SEVERITY_INFO = IMarker.SEVERITY_INFO;

	public static final int SEVERITY_WARNING = IMarker.SEVERITY_WARNING;

	public static final int SEVERITY_ERROR = IMarker.SEVERITY_ERROR;

	private ParserException() {
		super();
	}

	private ParserException(String arg0, Throwable arg1) {
	}

	private ParserException(String arg0) {
	}

	private ParserException(Throwable arg0) {
	}

	public ParserException(String message, int severity, int lineNumber) {
		super(message);
		this.severity = severity;
		this.lineNumber = lineNumber;
	}

	public int getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(int lineNumber) {
		this.lineNumber = lineNumber;
	}

	public int getSeverity() {
		return severity;
	}
}
